<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	contentType="text/html; charset=UTF-8"%>
<%@taglib uri="http://www.bird.com" prefix="bird"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<bird:indexTag></bird:indexTag>
		<title>product_out</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css" href="/Machine/css/member.css">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>

	<body>
		<form id="dform" target="send"
			action="/Machine/user/componentAddAction" method="post"
			enctype="multipart/form-data">

			<table class="tb" cellspacing="1" cellpadding="6">

				<tr>
					<td class="tl">
						<span class="f_red">*</span> 零部件标题
					</td>
					<td class="tr f_gray">
						<input id="name" type="text" value="" size="50"
							name="component.name">
						（2-30个字）
						<span id="dtitle" class="f_red"></span>
					</td>
				</tr>
				<!-- 

				<tr>
					<td class="tl">
						<span class="f_red">*</span> 零部件编号
					</td>
					<td class="tr">
						<input type="text" value="" size="30" name="component.number">
					</td>
				</tr>
				 -->
				<tr>
					<td class="tl">
						<span class="f_red">*</span> 零部件分类
					</td>
					<td class="tr">
						<select name="component.componentnumber">
							<c:forEach items="${map}" var="item">
								<option value="${item.value}">${item.key}</option>
							</c:forEach>
							
						</select>
					</td>
				</tr>
				<!-- 
				<tr>
					<td class="tl">
						<span class="f_red">*</span> 零部件规格
					</td>
					<td class="tr">
						<input type="text" value="" size="30"
							name="component.specification">
					</td>
				</tr>
				
				<tr>
					<td class="tl">
						<span class="f_red">*</span> 材质或其他
					</td>
					<td class="tr">
						<input type="text" value="" size="30"
							name="component.materialquality">
					</td>
				</tr>
				<tr>
					<td class="tl">
						<span class="f_red">*</span> 零部件重量
					</td>
					<td class="tr">
						<input type="text" value="" size="30" name="component.weight">
					</td>
				</tr>
				-->
				<tr>
					<td class="tl">
						<span class="f_red">*</span> 零部件价格
					</td>
					<td class="tr">
						<input type="text" value="" size="30" name="component.price">
					</td>
				</tr>
				<tr>
					<td class="tl">
						<span class="f_red">*</span> 性能描述
					</td>
					<td class="tr">
						<input type="text" value="" size="30" name="component.performance">
					</td>
				</tr>
				<!-- 
				<tr>
					<td class="tl">
						<span class="f_red">*</span> 零部件规范
					</td>
					<td class="tr">
						<input type="text" value="" size="30" name="component.standard">
					</td>
				</tr>
				<tr>
					<td class="tl">
						<span class="f_red">*</span> 质量等级
					</td>
					<td class="tr">
						<input type="text" value="" size="30"
							name="component.qualityclass">
					</td>
				</tr>
				 -->
				<tr>
					<td class="tl">
						<span class="f_red">*</span> 库存数量
					</td>
					<td class="tr">
						<input type="text" value="" size="30" name="component.stockamount">
						<input type="hidden" value="${sessionScope.username}" name="component.providername">
						<input type="hidden" value="${sessionScope.userid}" name="component.providerid">
					</td>
				</tr>
				<tr>
					<td class="tl">
						其他属性


					</td>
					<td class="tr f_gray">
						<textarea id="content" class="dsn" name="component.other"
							style="width: 330px; height: 150px;"></textarea>
					</td>

				</tr>
				<tr>
					<td class="tl">
						二维图片
					</td>
					<td class="tr f_gray">
						<input type="file" name="file">(文件大小不能超过10M)

					</td>

				</tr>
				<tr>
					<td class="tl">
						工程图
					</td>
					<td class="tr f_gray">
						<input type="file" name="file">(文件大小不能超过10M)

					</td>

				</tr>

				<tr>
					<td class="tl">
						&nbsp;
					</td>
					<td class="tr" height="50">
						<input class="btn" type="submit" value="提交进入下一步" name="submit">
						<input class="btn" type="button" onclick="history.back(-1);"
							value=" 返 回 ">
					</td>
				</tr>

			</table>

		</form>

	</body>
</html>
